#ifndef __FONT_H
#define __FONT_H

#ifdef FONT_SUPPORT

#include <config.h>
#include <types.h>
#include <gapi.h>

#ifdef FONT_FREETYPE2_SUPPORT
#include <font_freetype2.h>
#endif

#ifdef FONT_BDF_SUPPORT
#include <font_bdf.h>
#endif

int load_font(TEXT *, u8 *);
int reload_font(TEXT *, unicode_t *);
int free_font(TEXT *);

/* Defined as common API function name for user */
#define LoadFont(text, file)     load_font(text, file)
#define ReloadFont(text, string) reload_font(text, string)
#define FreeFont(text)           free_font(text)

#endif /* FONT_SUPPORT */

#endif /* __FONT_H */
